package com.hmbe.entity;

import com.baomidou.mybatisplus.annotation.*;
import lombok.Data;

import java.io.Serializable;
import java.sql.Blob;
import java.sql.Date;
import java.time.LocalDateTime;

@Data
@TableName("hm_be_article")
public class HmBeArticle implements Serializable {
    /* id	int	0	0	0	0	-1	0									0	0	0	0	0	0	0
     category_id	int	0	0	0	0	0	0									0	0	0	0	0	0	0
     category_name	varchar	255	0	-1	0	0	0							utf8mb4	utf8mb4_0900_ai_ci	0	0	0	0	0	0	0
     title	varchar	255	0	-1	0	0	0							utf8mb4	utf8mb4_0900_ai_ci	0	0	0	0	0	0	0
     publish_time	datetime	0	0	-1	0	0	0									0	0	0	0	0	0	0
     publish_state	varchar	255	0	-1	0	0	0							utf8mb4	utf8mb4_0900_ai_ci	0	0	0	0	0	0	0
     cover_img_url	varchar	255	0	-1	0	0	0							utf8mb4	utf8mb4_0900_ai_ci	0	0	0	0	0	0	0
     content	text	0	0	-1	0	0	0							utf8mb4	utf8mb4_0900_ai_ci	0	0	0	0	0	0	0
     create_time	datetime	0	0	-1	0	0	0									0	0	0	0	0	0	0
 */
    private static final long serialVersionUID = 1L;
    @TableId(value = "id", type = IdType.AUTO)
    private Long id;
    @TableField("category_id")
    private Long categoryId;
    @TableField("category_name")
    private String categoryName;
    @TableField("title")
    private String title;
    @TableField("publish_time")
    private LocalDateTime publishTime;
    @TableField("state")
    private String state;
    @TableField("cover_img")
    private byte[] coverImg;
    @TableField("cover_img_url")
    private String coverImgUrl;
    @TableField("content")
    private String content;
    @TableField(value = "create_time", fill = FieldFill.INSERT)
    private LocalDateTime createTime;
}
